package chapter10.jsjf;

public class test {
    public static void main(String[] args) {
//        LinkedBinaryTree root = new LinkedBinaryTree(1);
//        LinkedBinaryTree node1 = new LinkedBinaryTree(2);
//        LinkedBinaryTree node2 = new LinkedBinaryTree(3);
//        LinkedBinaryTree node11 = new LinkedBinaryTree(4);
//        LinkedBinaryTree node12 = new LinkedBinaryTree(5);
//        LinkedBinaryTree a = new LinkedBinaryTree(root,node1,node2);
//        //LinkedBinaryTree b=new LinkedBinaryTree(node1)
//        //a.removeAllElement();
//        System.out.println(a.isEmpty());

                BinaryTreeNode a = new BinaryTreeNode(1);
                BinaryTreeNode b = new BinaryTreeNode(2);
                BinaryTreeNode c = new BinaryTreeNode(3);
                BinaryTreeNode d = new BinaryTreeNode(4);
                BinaryTreeNode e = new BinaryTreeNode(5);

                LinkedBinaryTree aa = new LinkedBinaryTree(d.getElement());
                LinkedBinaryTree bb = new LinkedBinaryTree(e.getElement());
                LinkedBinaryTree cc = new LinkedBinaryTree(c.getElement());
                LinkedBinaryTree dd = new LinkedBinaryTree(b.getElement(),aa,bb);
                LinkedBinaryTree ee = new LinkedBinaryTree(a.getElement(),dd,cc);



               
        System.out.println(ee.toString());

             



            }

}
